<template>
  <button @click="exportClick">导出</button>
  <div id="luckysheet" ref="luckysheetRef" style="margin:0px;padding:0px;position:absolute;width:100%;height:100%;left: 0px;top: 60px;"></div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { exportExcel } from '@/test/export'
const luckysheetRef = ref()
const exportClick = () => {
  exportExcel(luckysheet.getluckysheetfile(), 'ttttt')
};
onMounted(() => {
  var options = {
    container: 'luckysheet' //luckysheet为容器id
  }
  luckysheet.create(options)
})
</script>